/**
 * 
 */
package x.java.net;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.jar.JarFile;

/**
 * @author qiangli
 *
 */
public class JarURLConnection extends java.net.JarURLConnection {

	/**
	 * @param url
	 * @throws MalformedURLException
	 */
	public JarURLConnection(URL url) throws MalformedURLException {
		super(url);
	}

	/* (non-Javadoc)
	 * @see java.net.JarURLConnection#getJarFile()
	 */
	
	public JarFile getJarFile() throws IOException {
		String s = super.getJarFileURL().toExternalForm();
		return new x.java.util.jar.JarFile(s);
	}

	/* (non-Javadoc)
	 * @see java.net.URLConnection#connect()
	 */

	public void connect() throws IOException {
	}

}
